﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Announcement.Admin
{
    public partial class SalesEdit : AdminLoginPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lbtnBack_Click(object sender, EventArgs e)
        {
            string cCode = Request.QueryString["CCode"];
            string id = Request.QueryString["Id"];
            string mode = Request.QueryString["mode"];
            Response.Redirect("~/Admin/GarageEdit.aspx?CCode=" + cCode + "&Id=" + id + "&mode=" + mode);
        }

        protected void lvGarageDetails_ItemCreated(object sender, ListViewItemEventArgs e)
        {
            HiddenField hfGId = (HiddenField)e.Item.FindControl("hfGId");
            hfGId.Value = Request.QueryString["GarageId"];
        }

        protected void lbtnExit_Click(object sender, EventArgs e)
        {
            Session["AdminUserName"] = null;
            Response.Redirect("../Login.aspx");
        }

    }
}
